var itemTitle = [];
var itemImage = [];
var itemContent = [];

function mycallback(json) {

	for (var i = 0; i < json.feed.entry.length; i++) {
		for (var j = 0; j < json.feed.entry[i].link.length; j++) {
			if (json.feed.entry[i].link[j].rel == 'alternate') {
				var postUrl = json.feed.entry[i].link[j].href;
				break;
			}
		}

		var postTitle = json.feed.entry[i].title.$t;
		var postAuthor = json.feed.entry[i].author[0].name.$t;
		var postSummary = json.feed.entry[i].summary.$t;
		var entryShort = postSummary.substring(0, 170);
		var entryEnd = entryShort.lastIndexOf(" ");
		var postContent = entryShort.substring(0, entryEnd) + '...';
		var imageThumb = json.feed.entry[i].media$thumbnail.url;

		itemTitle = "<div class='text'><b><a href='" + postUrl + "'>" + postTitle + "</a></b><br />";
		itemImage = "<div class='image'><img src='" + imageThumb + "' class='float' /></div>";
		itemContent = "<div class='text'>" + postContent + "</div>";

		document.write(item);

	}
	
	for	(var index = 0; index < itemTitle.length; index++) {
		document.write(itemTitle[i]);
	}	

	for	(var index = 0; index < itemContent.length; index++) {
		document.write(itemContent[i]);
	}	
	
	
}